import request from "@/utils/request";
import { Method } from "axios";
export interface Bombing {
    _id: string;
    title: string;
    method: Method;
    url: string;
    status: number;
    params: string;
    data: string;
    headers: string;
}
export const getBombingApi = (params?: Partial<Bombing>) => request.get("/admin/bombing", { params });
export const createBombingrApi = (data: Partial<Bombing>) => request.post("/admin/bombing", data);
export const updateBombingApi = (data: Partial<Bombing>) => request.patch("/admin/bombing", data);
export const deleteBombingApi = (data: Partial<Bombing>) => request.delete("/admin/bombing", { data });
export const startBombingApi = (params?: Partial<Bombing>) => request.get("/admin/bombing/bomb", { params });
export const bombInBulkApi = () => request.get("/admin/bombing/inBulk");
export const handleAutoBombApi = () => request.get("/admin/bombing/auto");
